<template>
  <div class='contain'>
    <div id="firstBtn" @click="onClick" ref="aa">{{msg}}</div>
  </div>
</template>
<script>
  import helper from '../../service/helper.js';
  import parameter from '../../service/state.js';
  export default {
    data() {
      return {
          msg:"原始值",
      };
    },
    components: {

    },
    methods: {
        onClick(){
            let that = this
            that.msg = "修改后的值"
            console.log(that.$refs.aa.innerHTML,1111);
            that.$nextTick(()=>{
            console.log(that.$refs.aa.innerHTML,2222);
            })
        }
    },
    watch: {

    },
    mounted() {

    },
    created(){
        // console.log(this.$refs.aa.innerHTML,0);
        this.$nextTick(()=>{
            console.log(this.$refs.aa.innerHTML,3333);
            })
    }
};
</script>
<style scoped>

</style>